package com.sharekitchen.controller;


import com.sharekitchen.entity.LineData;
import com.sharekitchen.service.LineDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/lineData")
public class LineDataController {
    @Autowired
    LineDataService lineDataService;

    @GetMapping("getData")
    public LineData getData() {
        LineData lineData = lineDataService.getLineData();
        return lineData;
    }
}
